package com.globallogic.university.documents;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.globallogic.university.people.Teacher;

public class CurriculumTest {
	
	@Test
	public void shouldCreateCurriculum() {
		// given
		String expected = "Curriculum1";
		
		// when
		Curriculum curr1 = new Curriculum();
		curr1.setCurriculumName(expected);
		
		// then
		Assert.assertEquals(curr1.getCurriculumName(), expected);
	}
	
	@Test
	public void shouldAddTeacherToCurriculum() {
		// given
		Teacher teacher = new Teacher("John", "Doe");
		Curriculum curr1 = new Curriculum();
		
		// when
		curr1.setCurriculumTeacher(teacher);

		// then
		Assert.assertEquals(curr1.getCurriculumTeacher(), teacher);
	}

}
